package com.demo.reservation.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 预约信息表
 *
 * @TableName pet_reservation
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@TableName("pet_reservation")
public class Reservation  {
    /**
     * 预约编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户编号
     */
    private Integer uid;

    /**
     * 宠物编号
     */
    private Integer petId;

    /**
     * 事件
     */
    private String reserveTime;

    /**
     * 预约原因
     */
    private String reason;

    /**
     * 1:未验证 2:已验证 3:已过期
     */
    private Integer status;

    /**
     *
     */
    private Date createTime;

    /**
     *
     */
    private Date updateTime;
    // 用户信息(外键)
    @TableField(exist = false)
    private Userinfo userinfo;
    // 宠物信息(外键)
    @TableField(exist = false)
    private PetInfo petInfo;
}